import csv
import re
import requests
import urllib.request

html = requests.get('https://www.inspur.com/')
html.encoding = 'UTF-8'
html = html.text
title_re = '<title>(.*?)</title>'

article_re = '<h3>.*</h3>'
article_titles = re.findall(article_re,html)
for art_title in article_titles:
    print(art_title)

script_re = '\<script[\S\s]+?\</script>'
html = re.sub(script_re, '', html)

url_re = '<a href="(.*?)">.*?</a>'
article_url = re.findall(url_re,html)
for art_url in article_url:
    print(art_url)
